<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>课堂匹配练习</title>
</head>

<body>
    <script>
        var str = "我们一起去旅游好吗？我带上你，你带上钱，我们可以一起坐火车，也可以做汽车。我带上我爱吃的零食，你带上你爱看的漫画"
        var t = str.replace(/[我他你们]/g, "*");
        console.log(t);
    </script>
</body>

</html>